<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>添加商品</title>
  <link rel="stylesheet"  href="/thinkphp1/Public/Css/admin.css"/>
</head>
<body>
      <div class="top">
          <div class="t_main w mt">
            <span><b>WE TEAM</b>商城后台管理系统</span>
            <div class="t_right fr">
              欢迎
              <?php echo $_SESSION['admin']['name']; ?>
              <a href="<?php echo U('Login/loginout');?>">❤退出❤</a>
            </div>
          </div>
      </div>
      <div class="main">
        <div class="main_left fl">
          <ul>
            <a href="<?php echo U('Goods/Index');?>">
              <li>
                <span class="lm_ico"></span>
                <b>商品管理</b>
                <span class="left_ico"></span>  
              </li>
              </a>
              <a href="<?php echo U('Category/Index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>分类管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('User/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>用户管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Order/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>订单管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Arguments/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>评论管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
              <a href="<?php echo U('Addver/index');?>">
                <li>
                  <span class="lm_ico"></span>
                  <b>广告管理</b>
                  <span class="left_ico"></span>
                </li>
              </a>
            </ul>
          </div>
          <div class="main_right fr">
        <div class="main_m">
            
	<form action="<?php echo U('Goods/add');?>" method="post" enctype="multipart/form-data" >
	商品名:
		<input type="text" name="name" placeholder="商品名"/>
		<br>
		价格：
		<input type="text" name="price"/>
		<br/>
		库存：
		<input type="text" name="stok"/>
		<br/>
		分类：
		<select name="cate">
			<?php if(is_array($list)): foreach($list as $key=>$val): ?><option value="<?php echo ($val['id']); ?>"><?php echo ($val['name']); ?></option><?php endforeach; endif; ?>
		</select>
		<br/>
		图片：
		<input type="file" name="pic"/>
		<br/>
		描述：
			<textarea name="des"></textarea>
			<br/>
		<input type="submit" value="添加"/>

	</form>

        </div>  
      </div>
        </div>
        <div id="footer">
          
        </div>
        </body>
      </html>